package frontend.pages.reports.workperteam;

import frontend.pages.reports.base.AbstractReportPage;
import frontend.pages.reports.base.AbstractReportPanel;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.wicketstuff.annotation.mount.MountPath;

import static shared.other.UserRolesDefinition.ADMIN_ROLE_KEY;
import static shared.other.UserRolesDefinition.FOREMAN_ROLE_KEY;

@MountPath("workPerTeamReport")
@AuthorizeInstantiation(value = {FOREMAN_ROLE_KEY, ADMIN_ROLE_KEY})
public class WorkPerTeamReportPage extends AbstractReportPage {

    public WorkPerTeamReportPage() {
        super("pages.workPerTeamReport.contextualHelp");
    }

    @Override
    protected AbstractReportPanel getReportPanel() {
        return new WorkPerTeamReportPanel("reportPanel");
    }
}